package com.learning.security.controller;

import com.learning.security.controller.vo.RightSaveReqVO;
import com.learning.security.service.AdminRightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/right")
public class AdminRightController {
    @Autowired
    private AdminRightService adminRightService;
    @PostMapping("/create")
    public boolean createRight(@RequestBody RightSaveReqVO reqVO){
        return adminRightService.createRight(reqVO);
    }
}
